package com.cmpan.networkdisk.dao;

import com.cmpan.networkdisk.model.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //查询username接口
    String selectByUserName(String username);

    //登录接口
    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    //查询所有
    User selectAll();
}